<?php
$s = in_array(10,array(10,20,30,40,50));
if($s){
echo "in";
}else{
echo "not in";
}exit;
$arr = array(1, 5, 6, 9 ,0);
$flag = rand(0,4);
echo $arr[$flag];
exit;
$str = base64_encode("freeway1598@gmail.com|16");
echo $str;
exit;
 $str = base64_decode("ZHdheW5lamVhbnBpZXJyZSU0MHlhaG9vLmNvbXwxNnwxMzc2NTQzNTgxfHw=");
 echo $str;exit;
// echo "<script>alert(\"Subscribe Successful!Redirect to our website!\");location.href = \"http://www.baidu.com/\"</script>";
// exit;
// require(dirname(__FILE__)."/includes/init.php");

// $timeStr = mktime(0, 0, 0, 8, 9, 2013);
// echo $timeStr."<Br/>";
//   for ($i=0; $i < 3600; $i++) { 
//     $timeStrs = intval($timeStr)+$i*86400;
//     $formatTime = date("Y-m-d H:i:s", $timeStrs);
//     echo $formatTime."--".$timeStrs."<br/>";
//    $sql = "insert into num(num, timeStamp) values(0, ".$timeStr.")";
//    $db->dbquery($sql);
//   }
// exit();
// $str = date("Y-m-d H:i:s", "1376118000");
// echo $str;
// exit();
// $str = date("Y-m-d H:i:s", time());
// $dataArr = explode(" ", $str);
// $dataResult = explode("-", $dataArr[0]);
// $nowTime = mktime(0, 0, 0, $dataResult[1], $dataResult[2], $dataResult[0]);
// $endTime = $nowTime + 86400;
// exit;

// for ($i=0; $i < 30; $i++) { 
//     $timeStr = mktime(0, 0, 0, 8, 9, 2013);
//     $timeStr = $timeStr + $i*3600*24;
//     $formatTime = date("Y-m-d H:i:s", $timeStr);
//     echo $formatTime."--".$timeStr."<br/>";
// }
// exit;
$str = base64_encode("http://www.hairze.com/goods.php?id=124");
$strs = "http://m1.haironlinesale.com/click.php?u=".$str."&address=|*specifyEmail*|";
//echo "<a href = \"http://www.c.com/send/click.php?u=".$str."&address=|*specifyEmail*|\">test</a><br/>";
$deStr = base64_decode($str);
echo $strs;
exit;
$arr = array('0' => 'updateEmail', );
$action = '';
if (in_array('aa', $arr)) {
    echo "ok";
}else{
    echo "not ok";
}
exit;
// function getBrowserVersion(){
//     return $_SERVER['HTTP_USER_AGENT'];
// }
// function get_onlineip() {
//     $onlineip = '';
//     if(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown')) {
//         $onlineip = getenv('HTTP_CLIENT_IP');
//     } elseif(getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown')) {
//         $onlineip = getenv('HTTP_X_FORWARDED_FOR');
//     } elseif(getenv('REMOTE_ADDR') && strcasecmp(getenv('REMOTE_ADDR'), 'unknown')) {
//         $onlineip = getenv('REMOTE_ADDR');
//     } elseif(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown')) {
//         $onlineip = $_SERVER['REMOTE_ADDR'];
//     }
//     return $onlineip;
// }
$userBrowser = getBrowserVersion();
$ip = get_onlineip();
$email = "freeway1598@gmail.com";
$unsub = base64_encode($email."|16|".time()."|".$userBrowser."|".$ip);
echo $unsub;
?>